package com.xinqi.modules.course.clazz.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xinqi.common.mybatis.data.repo.SuperMapper;
import com.xinqi.modules.course.clazz.domain.ClassParentGroupStudentEntity;
import com.xinqi.modules.course.clazz.dto.req.ClassParentGroupStudentQueryDTO;
import com.xinqi.modules.course.clazz.dto.rsp.ClassParentGroupStudentResultDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 班级父分组人员表，该表的作用是为了保证在并发情况下每个父分组下的成员不重复数据层
 *
 * @author: system
 * @date: 2023/05/21
 */
@Mapper
public interface ClassParentGroupStudentMapper extends SuperMapper<ClassParentGroupStudentEntity> {
    Page<ClassParentGroupStudentResultDTO> findPage(Page<Object> page, @Param("dto") ClassParentGroupStudentQueryDTO query);

    List<ClassParentGroupStudentResultDTO> findList(@Param("dto") ClassParentGroupStudentQueryDTO query);
}
